package adapter.service.impl;

import adapter.service.mediaPlayer;

//实现普通播放器
public class mediaPlayerImpl implements mediaPlayer {
    adapter adapter;

    @Override
    public void play(String audioType, String fileName) {
        if (audioType.equalsIgnoreCase("vlc")) {
            adapter = new adapter(audioType);
            adapter.play(audioType, fileName);
        } else if (audioType.equalsIgnoreCase("mp4")) {
            adapter = new adapter(audioType);
            adapter.play(audioType, fileName);
        } else if (audioType.equalsIgnoreCase("mp3")) {
            System.out.println("正在播放mp3文件");
        }
    }
}
